<?php
class Home extends CI_Controller{
	//构造函数
	function __construct(){
		parent::__construct();
// 		$this->load->library('ChromePhp');
// 		$this -> chromephp -> log($this->session->userdata('user'));
		
		if(!$this->session->userdata('user_id')){
			$this->load->helper('url');
			redirect('/Login');
		}
	}
	
	//首页
	public function  Index () {
		$this-> load -> view('home');
	}
}
